﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using System.Collections.ObjectModel;
using System.ComponentModel;

namespace InnovTech.Wpf.Unittest.Test.TestStuffs
{
    public class VmBtnTestControl : INotifyPropertyChanged
    {
        public ICommand TestButtonCommand
        {
            get;
            set;
        }

        public ObservableCollection<string> SelectionItems
        {
            get
            {
                ObservableCollection<string> items = new ObservableCollection<string>() { "aaa", "bbb", "ccc" };
                return items;
            }
        }

        private string _comboxSelection;
        public string ComboBoxSelection
        {
            get
            {
                return _comboxSelection;
            }
            set
            {
                if (_comboxSelection != value)
                {
                    _comboxSelection = value;
                    if (PropertyChanged != null)
                        PropertyChanged(this, new PropertyChangedEventArgs("ComboBoxSelection"));
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
